"""Bce config"""

import json
from os.path import dirname, abspath, join

CONFIG_DIR = dirname(abspath(__file__))
CONF_JSON_PATH = join(CONFIG_DIR, "user_conf.json")

with open(CONF_JSON_PATH, encoding="utf-8") as f:
    USER_CONF = json.load(f)
    BCE_CONF = USER_CONF["BCE"]
    BOS_HOST = BCE_CONF["BOS_HOST"]
    ACCESS_KEY_ID = BCE_CONF["ACCESS_KEY_ID"]
    SECRET_ACCESS_KEY = BCE_CONF["SECRET_ACCESS_KEY"]
    BUCKET_NAME = BCE_CONF["BUCKET_NAME"]
    PROFRAW_KEY_PATH = BCE_CONF["PROFRAW_KEY_PATH"]
